Skip to content

Cybersecurity skills: specialist agents, orchestrator, crypto sandbox - #12

Merged
hiuyear merged 2 commits into
mainfrom
cybersecurity-skills
May 26, 2026
Merged

Cybersecurity skills: specialist agents, orchestrator, crypto sandbox#12
hiuyear merged 2 commits into
mainfrom
cybersecurity-skills

Conversation

@hiuyear

@hiuyear hiuyear commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • 5th attack skill — wallet auth bypass (IDOR): probes /api/wallet/:id, /api/portfolio etc. without an auth header; flags any endpoint that returns balance, address, or transaction data unauthenticated. Crypto-native finding type, maps to CREDENTIAL_EXPOSURE / critical.
  • 6 specialist agent classes (SQLInjectionAgent, APIKeyAgent, WalletAuthAgent, CredentialAgent, PortScanAgent, SSLAgent): each has its own ERC-8004 agentId, agentName, and capability tags. BaseSpecialist enforces the scope-grant check and overrideAgentId so every finding is stamped with the specialist's identity, not the master grant's.
  • Orchestrator (agent/orchestrator.ts): dispatches all 6 specialists in parallel against a target, compiles a master Telegram report, and fires a single batch x402 payment for the total findings. Stubs cleanly if merchant env is missing.
  • /scan [url] Telegram command: routes directly to the orchestrator. Falls back to DEMO_TARGET_URL if no URL is provided — one command triggers the full 2-min demo flow.
  • CryptoSandbox demo target (demo-target/sandbox.js): deliberately vulnerable Express server themed as a crypto trading platform with 6 planted vulns, one per specialist: SQLi on /api/login, exposed API keys at /api/config, wallet IDOR at /api/wallet/:id, .env leak, user list exposure, and agent credential leak at /api/agent-config.

Demo path

/scan http://localhost:4000
  → 6 agents fire in parallel
  → per-finding Telegram alerts as each specialist hits a vuln
  → master report with finding IDs, severities, total USDC
  → x402 batch payment + explorer link

Files changed

File What
src/skills/walletAuth.ts New IDOR skill
src/skills/index.ts Export walletAuth
agent/specialists/base.ts BaseSpecialist class
agent/specialists/agents.ts 6 concrete specialist classes
agent/orchestrator.ts Parallel dispatch + master report + x402
agent/llm/skill-adapter.ts Wire walletAuth + overrideAgentId param
agent/llm/tools.ts Expose wallet_auth_bypass as LLM tool
agent/telegram-bot.ts /scan command + merge deepLinkButtons from main
demo-target/sandbox.js CryptoSandbox with 6 planted vulns

Not touched

onchain/, shared/, scripts/, ERC-8004 registration, x402 client, scope-grant signing/verification — all unchanged.

Made with Cursor

hiuyear and others added 2 commits May 26, 2026 16:11
…ndbox

- New walletAuthAttack skill: IDOR probe on wallet/portfolio endpoints (no auth header)
- Wire walletAuthAttack into skill-adapter and expose as LLM tool (wallet_auth_bypass)
- Add overrideAgentId param to runSkill() so specialists can stamp their own ERC-8004 id
- New specialist agent classes (SQL, APIKey, Wallet, Credential, Port, SSL) each with own agentId and capability tags
- New orchestrator: dispatches all 6 specialists in parallel, compiles master report, triggers batch x402 payment, sends Telegram
- /scan [url] command in Telegram bot routes to orchestrator; defaults to DEMO_TARGET_URL
- New demo-target/sandbox.js: CryptoSandbox with 6 planted vulns (SQLi, exposed API keys, wallet IDOR, .env leak, user list, agent config leak)
…mmand

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openclaw-hackathon Ready Ready Preview, Comment May 26, 2026 8:19pm

@hiuyear
hiuyear merged commit 69578e1 into main May 26, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant